non-deterministic algorithm

join shbcf.ru